package org.wisigoth.chat.client.jabber.exception;

import org.wisigoth.chat.client.exceptions.WisigothRuntimeException;
import org.wisigoth.chat.client.jabber.Packet;

public class UnknownPacketException extends WisigothRuntimeException {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Packet unknownPacket;
	
	public UnknownPacketException(Packet packet) {
		this.unknownPacket = packet;
	}


	public UnknownPacketException(Packet packet, String message) {
		super(message);
		this.unknownPacket = packet;
	}
	
	public Packet getPacket() {
		return this.unknownPacket;
	}
}
